package com.geekca.d5;

public class Sumn {
    public static void main(String[] args) {
        System.out.println(mySum(2000));
    }

    public static int mySum(int n) {
        int total = 0;
        for (int i = 1; i <= n; i++) {
            total += i;
        }
        return total;

    }
}

